﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Assembly="FlashControl" Namespace="Bewise.Web.UI.WebControls" TagPrefix="Bewise" %>
<script runat="server">
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!ViewData["vars"].Equals(""))
        {
            Timer1.Interval = int.MaxValue; //999999999;
        }
    }      
    

</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    GameRoom
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        GameRoom</h2>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" Interval="3000" runat="server">
    </asp:Timer>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--<%: Html.TextBoxFor(m => ViewData["vars"])%>--%>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
     <% if (!ViewData["vars"].Equals("")) {%>>
        <Bewise:FlashControl ID="FlashControl1" runat="server" Height="500px" 
        MovieUrl="~/Ressources/BomberMan.swf" Width="500px" />
    <% }%>
    <fieldset>
        <legend>Game</legend>
        <!--<object width="250" height="360" id="obj_1335215280407">
        <param name="movie" value="http://bomberman-ingesup.chatango.com/group"/>
        <param name="wmode" value="transparent"/>
        <param name="flashvars" value="cid=1335215280407&b=60&f=50&l=999999&q=999999&r=100&s=1"/>
    
        <embed id="emb_1335215280407" 
            src="http://bomberman-ingesup.chatango.com/group" 
            width="250" height="360" wmode="transparent" 
            type="application/x-shockwave-flash" allowFullScreen="true"
            flashvars="cid=1335215280407&b=60&f=50&l=999999&q=999999&r=100&s=1">
        </embed>
    </object>-->
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
